package com.hi.hiparty.manager;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hi.hiparty.dao.PostDao;
import com.hi.hiparty.entity.Post;

@Service
public class PostManager {

	private static final Log logger = LogFactory.getLog(PostManager.class);

	@Autowired
	private PostDao postDao;

	public Post insert(Post post) throws Exception {
		return postDao.insert(post);
	}

	public List<Post> list(String partyid, int start, int size) throws Exception {
		return postDao.list(partyid,start,size);
	}
}
